package com.lingxin.gps.wap;

import com.jfinal.handler.Handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 */
public class WapRedirectHandler extends Handler {

	private static final Logger logger = LoggerFactory.getLogger(WapRedirectHandler.class);

	@Override
	public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
		// 如果是静态资源不处理
		if (target.indexOf(".") != -1) {
			return;
		}

		next.handle(target, request, response, isHandled);
	}

}
